<template>
  <div class="carousel">
    <el-carousel :interval="4000" type="card" height="300px">
      <el-carousel-item v-for="item in 6" :key="item">
        <h3 text="2xl" justify="center">{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
  </div>
  <el-row class="row-bg" justify="space-around">
    <el-col :span="18">
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
      <div class="grid-content ep-bg-purple-light">主页重要内容展示</div>
    </el-col>
  </el-row>
</template>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.el-row {
  margin-bottom: 20px;
}

.el-row:last-child {
  margin-bottom: 0;
}

.el-col {
  border-radius: 4px;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
</style>
